package cn.csc.module.member.convert.userrole;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.member.controller.app.userrole.vo.*;
import cn.csc.module.member.dal.dataobject.userrole.MemberUserRoleDO;

/**
 * 会员和角色关联 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface MemberUserRoleConvert {

    MemberUserRoleConvert INSTANCE = Mappers.getMapper(MemberUserRoleConvert.class);

    MemberUserRoleDO convert(AppMemberUserRoleCreateReqVO bean);

    MemberUserRoleDO convert(AppMemberUserRoleUpdateReqVO bean);

    AppMemberUserRoleRespVO convert(MemberUserRoleDO bean);

    List<AppMemberUserRoleRespVO> convertList(List<MemberUserRoleDO> list);

    PageResult<AppMemberUserRoleRespVO> convertPage(PageResult<MemberUserRoleDO> page);

    List<AppMemberUserRoleExcelVO> convertList02(List<MemberUserRoleDO> list);

}
